# coding=utf-8

import sys
s = '王友'
di={}
print sys.getdefaultencoding()
di['key']=s
print di['key']



s.encode('gbk')

#s.decode('').encode('utf-8')

print di.values()

import chardet

print chardet.detect(s)